home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2682 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.5 KB

  1. Path: cadesm44.eng.utah.edu!stack
  2. From: stack@cadesm44.eng.utah.edu (Timothy Stack)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: BOOPSI Lib code
  5. Date: 2 Feb 1996 17:08:04 GMT
  6. Organization: University of Utah Computer Center
  7. Message-ID: <4etgdk$u4@news.cc.utah.edu>
  8. References: <65641198%agos001@pn.itnet.it> <heinz.15eg@hwg.muc.de> <65641207%agos001@pn.itnet.it>
  9. NNTP-Posting-Host: cadesm44.eng.utah.edu
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Stefano Agostinelli (agos001@pn.itnet.it) wrote:
  13. : Heinz Wrobel wrote in comp.sys.amiga.programmer about "Re: BOOPSI Lib code":
  14. : > Stefano Agostinelli (agos001@pn.itnet.it) wrote:
  15. : > >how can I make my boopsi classes external?I suppose I need some pre-cooked
  16. : > >library startup code;SAS/C libinit/devinit objects are only for
  17. : > >library/device code,isn't it?MUI external classes make use of libinit,
  18. : > >I'm sure,but what about generic boopsi classes?
  19. : > >And what is libent.o?
  20. : > >Many thanks.
  21. : > 
  22. : > With e.g SAS/C. No, you got one with SAS/C. Yes. BOOPSI classes are
  23. : > basically libraries, too. Hmm, did you _buy_ your copy of SAS/C?
  24.  
  25. :  Yep I've buyed my copy of SAS/C!The manual says nothing about BOOPSI
  26. :  classes (well it only says they must be opened/closed just as normal
  27. :  libraries).
  28.  
  29. : > Let me suggest that you RTFM and the RKM's again.
  30.  
  31. :  I've read both the SAS/C manual and the RKMs.Both says nothing about
  32. :  the procedure to follow for creating external BOOPSI classes!
  33.  
  34. :  BTW I'm looking for some real example.
  35.  
  36. :  Cheerio
  37. : Stefano
  38.  
  39. : +-----------------------------+-----------------------------------------+
  40. : | Stefano Agostinelli         | Now developing for You ARM:             |
  41. : | Genoa - Italy               | the State of Art AmigaRoleMaster System |
  42. : +-----------------------------+-----------------------------------------+
  43. : | IRC: arm                    | 'Where are you going, Master?'          |
  44. : | E-mail: agos001@pn.itnet.it | 'To the Havens, Sam'                    |
  45. : +-----------------------------+-----------------------------------------+
  46.  
  47. The only thing you have to do is create your dispatcher then have the
  48. library init code call MakeClass and AddClass...  Thats all, so when
  49. you open the library it will automatically add the class.  Be warned
  50. that you must reset A6 and A4 before you do anything.  A simple way to
  51. do it is to set the h_Entry in the hook to a function that will place
  52. your lib base in A6 then call geta4() then  you just call the
  53. h_SubEntry which is your dispatcher.  And you can stash the lib
  54. pointer in one of the userdata sections of the structs.  Easy.
  55.  
  56. Tim Stack
  57.  
  58.